'''
Descripttion: 
Author: Haixu He
Date: 2021-12-12 19:46:22
'''
import numpy as np  
import matplotlib.pyplot as plt
if __name__ == '__main__':
    np.random.seed(200)
    length = 300
    x = np.arange(length)
    y = np.sin(0.1*x)
    noise = np.random.random(length)*0.3
    y+=noise
    print(y)
 
    miss = np.random.randint(0,length,20)
    print(miss)
    # y[miss]=np.nan
    plt.plot(x,y)
    plt.show()
    np.save('data.npy',y)
    